<!DOCTYPE html>
<html lang="en-US">
  <head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <meta name="description" content="">
    <meta name="author" content="">
    <!-- <link rel="icon" href="../../favicon.ico"> -->

    <title>DSBM Homepage</title>

    <!-- Bootstrap core CSS -->
    <link href="https://cdn.bootcss.com/bootstrap/3.3.7/css/bootstrap.min.css" rel="stylesheet">

    <!-- IE10 viewport hack for Surface/desktop Windows 8 bug -->
    <link href="../css/ie10-viewport-bug-workaround.css" rel="stylesheet">

    <!-- Custom styles for this template -->
    <link href="../css/cover.css" rel="stylesheet">
    <link type="text/css" href="../css/font-awesome.min.css" rel="stylesheet" />
    
    <!-- styles needed by jScrollPane -->
    <link type="text/css" href="../css/jquery.jscrollpane.css" rel="stylesheet" media="all" />
    

    <!-- Just for debugging purposes. Don't actually copy these 2 lines! -->
    <!--[if lt IE 9]><script src="../../assets/js/ie8-responsive-file-warning.js"></script><![endif]-->
    <script src="../js/ie-emulation-modes-warning.js"></script>

    <!-- HTML5 shim and Respond.js for IE8 support of HTML5 elements and media queries -->
    <!--[if lt IE 9]>
      <script src="https://cdn.bootcss.com/html5shiv/3.7.3/html5shiv.min.js"></script>
      <script src="https://cdn.bootcss.com/respond.js/1.4.2/respond.min.js"></script>
    <![endif]-->
  </head>

  <body>
      <nav class="navbar navbar-inverse navbar-static-top">
          <div class="container">
            <div class="navbar-header">
              <button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#navbar" aria-expanded="false" aria-controls="navbar">
                <span class="sr-only">Toggle navigation</span>
                <span class="icon-bar"></span>
                <span class="icon-bar"></span>
                <span class="icon-bar"></span>
                <span class="icon-bar"></span>
                <span class="icon-bar"></span>
              </button>
              <a class="navbar-brand" href="/">DSBM</a>
            </div>
              <ul class="nav navbar-nav navbar-right">
                <li class="active"><a href="/">Home</a></li>
                <li><a href="/piazza">Piazza</a></li>
                <li><a href="#">Contact</a></li>
                <li role="separator" class="divider"></li>
                <li>
                  <% if (user) { %>
                    <a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-haspopup="true" 
                    aria-expanded="false"><%= user.username %><span class="caret"></span></a>
                    <ul class="dropdown-menu">
                      <li><a href="/profile/<%= user._id%>">Profile</a></li>
                      <% if(user.isAdmin){ %>
                        <li><a href="/admin">Administration</a></li>
                      <% } %>
                      <li><a href="/signout">Signout</a></li>
                    </ul>
                  <% } else { %>
                    <a href="/signin">Sign In</a>
                  <% } %>
                </li>
              </ul>
            </div><!--/.nav-collapse -->
          </div>
        </nav>
    <div class="site-wrapper container">

      <div class="site-wrapper-inner">

        <div class="cover-container">
